﻿using System;

namespace BrettM.Web.Hosting
{
    public class ErrorEventArgs : EventArgs
    {
        public Exception Exception { get; set; }

        public ErrorEventArgs()
        {}

        public ErrorEventArgs(Exception exception)
        {
            if (exception == null) throw new ArgumentNullException("exception");
            Exception = exception;
        }
    }
}
